export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  "column": [
	  {
      "type": "input",
      "label": "编号",
      "prop": "menuId",
      "span": 12,
      hide: true,
      editDisplay: false,
      addDisplay: false,
    },	  {
      "type": "input",
      "label": "菜品编号",
      "prop": "dishesId",
      "span": 12,
      hide: true,
      editDisplay: false,
      addDisplay: false,
    },	  {
      "type": "input",
      "label": "菜品名称",
      "prop": "dishesName",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入菜品名称'
      }],
      search: true,
      formslot: true
    },	  {
      "type": "select",
      "label": "菜品类别",
      "prop": "categoryId",
      "span": 12,
      dicUrl: '/act/diningdishescategory/page?size=-1&status=1',
      props: {
        label: 'name',
        value: 'categoryId',
        res: "data.records"
      },
      editDisplay: false,
      addDisplay: false,
    },	  {
      "type": "date",
      "label": "日期",
      "prop": "menuDate",
      format: 'yyyy-MM-dd',
      search: true,
      valueFormat: 'yyyy-MM-dd',
      "span": 12,
      rules: [{
        required: true,
        message: '请选择日期'
      }],
    },	  {
      "type": "number",
      "label": "价格",
      "prop": "price",
      "span": 12,
      addDisplay: false,
      editDisabled: true,
      maxRows: 1000000,
    },	  {
      "type": "select",
      "label": "时段",
      "prop": "period",
      "span": 12,
      dicUrl: '/admin/dict/type/dishes_period_status',
      search: true,
      rules: [{
        required: true,
        message: '请选择时段'
      }],
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "status",
      "span": 12,
      dicUrl: '/admin/dict/type/dishes_status',
      search: true,
      value: '1',
    },	  {
      "label": "图片",
      "prop": "cover",
      type: 'upload',
      width: 140,
      loadText: '附件上传中，请稍等',
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      editDisabled: true,
      addDisplay: false,
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: "/act/file/upload"
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      "span": 12,
      maxlength: 128,
      editDisplay: false,
      addDisplay: false,
    // },	  {
    //   "type": "number",
    //   "label": "排序",
    //   "prop": "sort",
    //   "span": 12,
    //   hide: true,
    //   editDisplay: false,
    //   addDisplay: false,
    //   value: 1
    },	  {
      "type": "input",
      "label": "创建用户名称",
      "prop": "createRealname",
      "span": 12,
      hide: true,
      editDisabled: true,
      addDisplay: false,
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "span": 12,
      editDisabled: true,
      addDisplay: false,
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      "span": 12,
      hide: true,
      editDisabled: true,
      addDisplay: false,
    }]
}
